package com.corder.display.util;

import java.security.InvalidKeyException;
import java.security.spec.InvalidKeySpecException;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;

public interface Crypt {
	//加密
	byte[] desCrypto(byte[]  datasource, String password) throws InvalidKeyException, InvalidKeySpecException, IllegalBlockSizeException, BadPaddingException ;
	//解密
	byte[] enCrypto(byte[]  datasource, String password) throws InvalidKeyException, InvalidKeySpecException, IllegalBlockSizeException, BadPaddingException;
}
